/*
 * <one line to give the program's name and a brief idea of what it does.>
 * Copyright (C) 2019
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef SHIPDRONE_H
#define SHIPDRONE_H

#include "commondata.hpp"

/**
 * \class ShipDrone
 * Class for describe ship drones. Player can have from 0 to 5 drones unique type each.
 */
class ShipDrone {
public:
	/**
	 * Constructor
	 * \param[in] type drone type
	 * \param[in] level drone level, can be from 0 to 25;
	 */
	ShipDrone(const droneType type, const uint8_t level);
	ShipDrone(const ShipDrone & other) = delete;
	~ShipDrone() {}

	/**
	 * \return drone type
	 */
	droneType getType() {
		return m_Type;
	}

	/**
	 * Each drone change one ship parameter.
	 * \return How much drone increase parameter
	 */
	double getValue() {
		return m_Value;
	}

private:
	const droneType m_Type;								/**< drone type */
	double m_Value = 0;									/**< how much drone increase param */
	uint8_t m_Level = 0;								/**< drone level */
};

#endif
